package top.eggcode.setup.config.query;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.eggcode.plugins.query.CriteriaBuilder;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * Title:
 * Description: TODO
 * Date: 2021/9/9 16:21
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Configuration
public class DSLContextConfig {

    @PersistenceContext
    protected EntityManager manager;

    @Bean
    public CriteriaBuilder set() {
        return new CriteriaBuilder(manager);
    }
}
